import { buildService,openBuildService } from '../../helper/service'


const settings = {
  // 新闻公告-创建人列表
  createPeopleList: {
    url: '/web/v1/msg_center/news/user_list',
    method: 'get'
  },
  // 新闻公告-列表
  getList: {
    url: '/web/v1/msg_center/news/list',
    method: 'get'
  },
  // 新闻公告-创建人列表
  getPeopleList: {
    url: '/web/v1/msg_center/news/user_list',
    method: 'get'
  },
  // 新闻公告-详情
  getDetailList: {
    url: '/web/v1/msg_center/news/detail',
    method: 'get'
  },
  // 新闻公告-保存
  saveNewsList: {
    url: '/web/v1/msg_center/news/save',
    method: 'post'
  },
  // 新闻公告-删除
  deteleNewsList: {
    url: '/web/v1/msg_center/news/delete',
    method: 'delete'
  },
  //预警告警管理-列表
  getWarnList: {
    url: '/web/v1/msg_center/alarm/list',
    method: 'get'
  },
  //预警告警管理-详情
  detailWarnList: {
    url: '/web/v1/msg_center/alarm/detail',
    method: 'get'
  },
  //预警告警管理-列表-标记为已处理(支持批量)
  disposeWarn: {
    url: '/web/v1/msg_center/alarm/batch_update_alarm_status',
    method: 'put'
  },
  //预警告警管理-保存(新增/修改)
  saveWarn: {
    url: '/web/v1/msg_center/alarm/save',
    method: 'post'
  },
  //预警告警管理-删除
  deteleWarnList: {
    url: '/web/v1/msg_center/alarm/delete',
    method: 'delete'
  },
  //通知待办-列表
  getNoticeList: {
    url: '/web/v1/msg_center/notify/list',
    method: 'get'
  },
  //通知待办-详情
  detailNoticeList: {
    url: '/web/v1/msg_center/notify/detail',
    method: 'get'
  },
  //通知待办-保存(新增/修改)
  saveNoticeList: {
    url: '/web/v1/msg_center/notify/save',
    method: 'post'
  },
  //通知待办-删除
  deteleNoticeList: {
    url: '/web/v1/msg_center/notify/delete',
    method: 'delete'
  },
  //业务-下拉框列表
  businessSelectList: {
    url: '/web/v1/msg_center/busi_cate/list',
    method: 'get'
  },
  //业务-批量新增
  addBusinessList: {
    url: '/web/v1/msg_center/busi_cate/batch_create',
    method: 'post'
  },
  //业务-删除
  detelebusinessList: {
    url: '/web/v1/msg_center/busi_cate/delete',
    method: 'delete'
  },
 
  
}
const openSettings={
   // 查询消息/预警报警列表
   getForewarnList:{
    url:'/ydt/warnRecord/getMsg',
    method:'get'
  },
  // 变更消息通知已读状态/批量处理预警报警
  alterMessageForewarn:{
    url:'/ydt/warnRecord/editMsg',
    method:'post'
  }
}
export default {...openBuildService(openSettings),...buildService(settings)}